﻿using System;
using Defero.Core.Entities;

namespace Defero.Infrastucture.Repositories 
{
    public partial class BugTrackerRepository
    {

        protected Guid GetUniqueIdentifier(Defero.Core.Entities.BugStatus item) 
        {
            switch (item) 
            {
                case Core.Entities.BugStatus.New:
                    return Guid.Parse("DCF87A77-C0CE-413F-AD98-BF2C9A087AB7");
                case Core.Entities.BugStatus.Working :
                    return Guid.Parse("4A1D9C4E-953A-4E84-AC10-FA61BD289F38");
                case Core.Entities.BugStatus.Done:
                    return Guid.Parse("096F53EC-C791-416B-932B-A7CC6E0279D2");
                case Core.Entities.BugStatus.QA:
                    return Guid.Parse("A4D602A5-D9BC-4A92-B6EA-4D040F5D6377");
                case Core.Entities.BugStatus.ReWorking:
                    return Guid.Parse("713188F1-0A59-4ABF-BF30-F256CDFCA4A9");
                case Core.Entities.BugStatus.Closed:
                    return Guid.Parse("1BEC680A-223B-4414-8187-4DC155335388");
                default: throw new NotImplementedException();
            }
        }

    }

}